/**
 * @Package: 	com.group.pojo 
 * @author: 	Liu  
 * @date: 		Dec 27, 2018 8:27:02 AM 
 */
package com.group.pojo;

import java.util.List;

import com.group.DAO.GEvaluateDAO;

/**
 * @ClassName:	 GEvaluate.java
 * @Description: 任务评价类
 * @author:		 Liu
 * @date: 		 Dec 27, 2018 8:27:02 AM 
 */
public class GEvaluate {
	// @Fields evaluateID : 评价ID
	int evaluateID;
	// @Fields workID : 任务ID
	int workID;
	// @Fields groupID : 小组ID
	int groupID;
	// @Fields groupName : 小组名
	String groupName;
	// @Fields evaluateContent : 任务内容
	String evaluateContent;
	// @Fields evaluateDegree : 任务评价
	String evaluateDegree;
	// @Fields evaluateType : 评价形式
	String evaluateType;
	// @Fields GWork : 任务
	GWork GWork;
	
	public GEvaluate() {}
	public GEvaluate(int workID, int groupID) {
		this.workID = workID;
		this.groupID = groupID;
	}
	public GEvaluate(int evaluateID, String evaluateContent, String evaluateDegree) {
		this.evaluateID = evaluateID;
		this.evaluateContent = evaluateContent;
		this.evaluateDegree = evaluateDegree;
	}
	/**
	 * @Function: 	 GEvaluate.java
	 * @Description: 通过小组ID获取任务评价
	 * @param:		   小组ID
	 * @return:		  任务评价列表
	 * @author: 	 Liu
	 * @date:		 Dec 28, 2018 10:03:58 PM 
	 */
	public List<GEvaluate> getEvaListByGroupID(int groupID){
		GEvaluateDAO dao = new GEvaluateDAO();
		return dao.getEvaListByGroupID(groupID);
	}
	
	/**
	 * @Function: 	 GEvaluate.java
	 * @Description: 获取任务分配的小组列表                          
	 * @param:		   任务ID                               
	 * @return:		  小组ID列表                              
	 * @author: 	 Liu
	 * @date:		 Dec 31, 2018 2:17:59 PM 
	 */
	public List<String> getGroupListByWorkID(int workID){
		GEvaluateDAO dao = new GEvaluateDAO();
		return dao.getGroupListByWorkID(workID);
	}
	
	/**
	 * @Function: 	 GEvaluate.java
	 * @Description: 添加评价                        
	 * @param:		   评价类                       
	 * @return:		                             
	 * @author: 	 Liu
	 * @date:		 Dec 31, 2018 3:10:37 PM 
	 */
	public void addEva(GEvaluate eva) {
		GEvaluateDAO dao = new GEvaluateDAO();
		dao.addEva(eva);
	}
	
	/**
	 * @Function: 	 GEvaluate.java
	 * @Description: 删除
	 * @param:		 
	 * @return:		 
	 * @author: 	 Liu
	 * @date:		 Dec 31, 2018 7:16:18 PM 
	 */
	public void delEva(int workID) {
		GEvaluateDAO dao = new GEvaluateDAO();
		dao.delEva(workID);
	}
	
	/**
	 * @Function: 	 GEvaluate.java
	 * @Description: 获取任务评价列表                          
	 * @param:		   任务ID                            
	 * @return:		  任务评价列表                           
	 * @author: 	 Liu
	 * @date:		 Jan 2, 2019 8:53:20 AM 
	 */
	public List<GEvaluate> getEvaListByWorkID(int workID){
		GEvaluateDAO dao = new GEvaluateDAO();
		return dao.getEvaListByWorkID(workID);
	}
	
	/**
	 * @Function: 	 GEvaluate.java
	 * @Description: 更新评价                               
	 * @param:		  评价类                               
	 * @return:		                                    
	 * @author: 	 Liu
	 * @date:		 Jan 2, 2019 10:09:46 AM 
	 */
	public void updateEva(GEvaluate eva) {
		GEvaluateDAO dao = new GEvaluateDAO();
		dao.updateEva(eva);
	}
	public int getEvaluateID() {
		return evaluateID;
	}
	public void setEvaluateID(int evaluateID) {
		this.evaluateID = evaluateID;
	}
	public int getWorkID() {
		return workID;
	}
	public void setWorkID(int workID) {
		this.workID = workID;
	}
	public int getGroupID() {
		return groupID;
	}
	public void setGroupID(int groupID) {
		this.groupID = groupID;
	}
	public String getEvaluateContent() {
		return evaluateContent;
	}
	public void setEvaluateContent(String evaluateContent) {
		this.evaluateContent = evaluateContent;
	}
	public String getEvaluateDegree() {
		return evaluateDegree;
	}
	public String getEvaluateType() {
		return evaluateType;
	}
	public void setEvaluateType(String evaluateType) {
		this.evaluateType = evaluateType;
	}
	public GWork getGWork() {
		return GWork;
	}
	public void setGWork(GWork gWork) {
		GWork = gWork;
	}
	public void setEvaluateDegree(String evaluateDegree) {
		this.evaluateDegree = evaluateDegree;
	}
	public String getGroupName() {
		return groupName;
	}
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}
}
